package com.company.handler;

import com.company.Scene;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/28 16:07
 * @version: v1.0
 * @modified By:
 */
public class HandlerBuy extends Handler {
    public HandlerBuy(Scene scene) {
        super(scene);
    }

    @Override
    public void doCommand(String word) {
        int flag=0;
        flag=scene.byShop(word);
        if (flag==0){
            System.out.println("抱歉没有该商品！");
        }




    }
}
